{% extends "layout.html" %}
{% block content %}
<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-6">
            <h2>{{ _('Log In') }}</h2>
            <form action="{{ url_for('login') }}" method="post">
                {{ form.hidden_tag() }}
                <div class="input-group mb-3">
                {{ form.nickmane(class_="form-control", placeholder=_('Your nickname')) }}
                </div>
                {% for message in form.nickmane.errors %}
                    <div class="alert alert-warning" role="alert">{{ message }}</div>
                {% endfor %}
                <div class="input-group mb-3">
                {{ form.password(class_="form-control", placeholder=_('Your Password')) }}
                </div>
                {% for message in form.password.errors %}
                    <div class="alert alert-warning" role="alert">{{ message }}</div>
                {% endfor %}
                {{ form.submit(class_="btn btn-primary") }}
                {% if self_registration %}<a href="{{ prefix() }}/signup" class="btn btn-info">{{ _('Sign up') }}</a>{% endif %}
            </form>
        </div>
    </div>
</div><!-- /.container -->
{% endblock %}
